package tgc.edu.szxt.demo.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import tgc.edu.szxt.demo.custom.BaseRepository;
import tgc.edu.szxt.demo.entity.SysRole;
import tgc.edu.szxt.demo.entity.SysUser;
@Repository
public interface SysUserRepository extends BaseRepository<SysUser, Integer>{

	public SysUser findByUsernameAndPassword(String username, String pwd);

	public SysUser findByUsername(String username);

	public List<SysUser> findByRoles(SysRole role);

}
